<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no">
  <title>微笑商城</title>
  <!-- <script src="/static/hd_adapter_rem2px.js"></script> -->
  <script src="//at.alicdn.com/t/font_683612_mqz45bzwqxna5rk9.js"></script>
</head>

<body>
  <div id="app"></div>
  <!-- built files will be auto injected -->
  <script>
    let htmlwidth = document.documentElement.clientWidth || document.body.clientWidth;
    let htmlDom = document.getElementsByTagName('html')[0];
    if (htmlwidth > 750) {
      htmlwidth = 750
    }
    htmlDom.style.fontSize = htmlwidth / 20 + 'px';
    console.log(htmlwidth, '1rem:', htmlDom.style.fontSize)

  </script>
</body>

</html>
